3cfdb3db247feb9b6afe3a30cd235d4a3e1f8c59,cloudant-sync-datastore-core/src/test/java/com/cloudant/sync/internal/query/IndexCreatorTest.java,IndexCreatorTest,correctlyLimitsTextIndexesToOne,#,246
Before Change
@Test(expected = QueryException.class)
public void correctlyLimitsTextIndexesToOne() throws QueryException {
String indexName = im.ensureIndexed(Arrays.<FieldSort>asList(new FieldSort("name"), new FieldSort("age")), "basic", IndexType.TEXT);
assertThat(indexName, is("basic"));
indexName = im.ensureIndexed(Arrays.<FieldSort>asList(new FieldSort("name"), new FieldSort("age")), "anotherIndex", IndexType.TEXT);
}
After Change
@Test(expected = QueryException.class)
public void correctlyLimitsTextIndexesToOne() throws QueryException {
String indexName = im.ensureIndexedText(Arrays.<FieldSort>asList(new FieldSort("name"), new FieldSort("age")), "basic", null).indexName;
assertThat(indexName, is("basic"));
indexName = im.ensureIndexedText(Arrays.<FieldSort>asList(new FieldSort("name"), new FieldSort("donuts")), "anotherIndex", null).indexName;
}